﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LiveSupportMan.ascx.cs" Inherits="AdminX_Company_LiveSupportMan" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Assembly="Paging" Namespace="CutePager" TagPrefix="cc1" %>
<div>
    <uc1:Alert ID="Alert1" runat="server" />
</div>

<div>
    <asp:Label ID="lblCategory" runat="server" Font-Bold ="true"   CssClass="text"  Text="Vị trí" ></asp:Label>
    <asp:DropDownList ID="ddlPosition" CssClass="boxnormal" AutoPostBack=true    runat="server" OnSelectedIndexChanged="ddlPosition_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:Label ID="lblStatus" runat="server" Text="Tình trạng" Font-Bold ="true"   CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="boxnormal" AutoPostBack=true  OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
        <asp:ListItem Selected="True" Value="-1">-------- Tất cả --------</asp:ListItem>
        <asp:ListItem Value="1">Hoạt động</asp:ListItem>
        <asp:ListItem Value="0">Không hoạt động</asp:ListItem>
    </asp:DropDownList>
    <asp:Label ID="lblKeyword" runat="server" Font-Bold="true"  Text = "Từ khóa" CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtKeyword" runat="server"  MaxLength="200" CssClass="boxlonger" ></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server"  Width="80px" Text ="Tìm kiếm"  OnClick="btnSearch_Click" />
</div>
<div style="text-align:right  ">
    <asp:Button ID="btnAddnew" runat ="server" Text = "Thêm mới"  OnClick="btnAddnew_Click1"  />
     <asp:Button ID="btnPosition" runat ="server" Text = "Vị trí hiển thị" Visible = "false"     />
</div>
<div>
    <asp:Label ID="lblTotalRecord" runat="server" CssClass="text" Font-Bold="true"></asp:Label>
   
</div>
<div>
    <asp:DataGrid ID="dtgAdv" runat="Server" AutoGenerateColumns="False" DataKeyField="AdvID" CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" BorderStyle="None" BorderWidth="1px" GridLines="Vertical" OnItemCommand="dtgAdv_ItemCommand" OnItemDataBound="dtgAdv_ItemDataBound">
        <HeaderStyle CssClass="grdHeader" BackColor="#698DAD" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White" />
        <Columns>
                <asp:TemplateColumn  HeaderText="STT" >
                    <HeaderStyle Width="30px" ></HeaderStyle >
                    <ItemTemplate>
                         <%# Container.ItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Đối tác">
                     <HeaderStyle ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblPartner" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Logo">
                     <HeaderStyle  Width="130px"></HeaderStyle >
                    <ItemTemplate>
                    <div style="padding:5px; "><asp:Image  ID="imgImage"  runat="server" Width="105px" Height ="70px" BorderWidth="2px" BorderColor="gray"    /></div>
           
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Vị trí hiển thị">
                     <HeaderStyle Width="130px"></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblPosition" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Ngày tạo">
                     <HeaderStyle ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblDateCreated" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Tình trạng">
                     <HeaderStyle Width = "130px" ></HeaderStyle >
                    <ItemTemplate>
                      <asp:LinkButton ID="lnkActive" runat="server" Text="Hoạt động" CommandName="Active" CausesValidation="false" ForeColor ="green"></asp:LinkButton>
                      <asp:LinkButton ID="lnkInactive" runat="server" Text="Không hoạt động" CommandName="Inactive" CausesValidation="false" ForeColor="red"  ></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn  HeaderText="Tùy chọn">
                    <HeaderStyle Width="100px"  ></HeaderStyle >
                    <ItemTemplate>
                      
                       <asp:LinkButton ID="lnkEdit" runat="server" Text="Sửa" CommandName="Edit" ForeColor = "green" ></asp:LinkButton> |
                      <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false" ForeColor="red"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
        </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
</div>
<div id="tblWarning" runat="server"  align="center" style="border:1px solid #A0A1A0; height: 25px; padding-top:5px;     ">
    <asp:Label ID="lblWarning" runat="server"  ForeColor="black" Font-Bold="true"     ></asp:Label>
</div>
<div align="right" style="width:100%; color: black">
    <cc1:pager id="Pager1" OnCommand="pager_Command"  runat="server"></cc1:pager>
</div>
